added config and sql structure