So one day I was looking to make my system start up faster so I say postgresql and tried to remove it..... Bad idea. Turns out metasploit depends on it. So I canceled it once it said metasploit needs to be removed too. So now I get this weird error when I try to install or remove anything.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up metasploit (4.6.1-2013052201-1kali0) ...
insserv: Service postgresql has to be enabled to start service metasploit
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing metasploit (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
metasploit
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have no idea what to do from here. Any help?