add database connection and upload form