Added contact_file variable for better portability, fixed database path issue