PostgreSQL code for Image metadata added

Some points:
1. DB created at the invocation of the page containing the image list (as opposed to before calling run.app.
2. config functionality is broken. Will fix it as a separate commit. For now the image directory is hardcoded.