added prepared statements, finally for close database connection and all functions for Address