Init-database and link slider to database