fixed px to db