i renamed my database prefix and WP reinstalled itself!!!

Hello I recently tried to use Defender to rename my database prefix. This normally always works fine, but this time it caused my WP installation to restart and create a new DB. My files and plugins are there, just not showing up on the left menu (but do on the plugin screen). I tried to reconnect my DB via WP-config, and still get that basic WP setup instead of my site. Can you help me reconnect to my old db properly please so I can bring my site up? Thank you in advance for your help!