All that is needed is for there to be an existing database, the details of which you must provide when you implement the gallery: database host (i.e localhost), database name, username, password.
Don't worry about tables, the solution will create these automatically upon implementation.