Temp datbase fix