App class added, general db mechanism, init_db.sql added