fix with database conneciton