New script to work with ricks databse