Saving constants in database