Adding clear DB functionality