complete image upload

some hard code here for test but only for the connection of the database
easy to fix