use variable for database