Moving scripts from database to database/cairo